﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Criterion;

namespace ZDSoft.TES.Service
{
    public interface IServiceBase<T>
    {
        void Create(T t);
        void Update(T t);
        void Delete(int id);
        T FindByID(int id);
        IList<T> FindAll();
        IList<T> Find(IList<ICriterion> queryConditions);
        IList<T> GetPaged(IList<ICriterion> queryConditions, IList<Order> orderList, int pageIndex, int pageSize, out int count);
    }
}
